package com.AUI.define.style
{
	/**
	 * Font.
	 * @author HuangMinPing
	 * @site www.AminLab.com
	 */
	public class FONT
	{
		/**
		 * Font color.
		 */
		public var color:int = 0;
		/**
		 * Font size.
		 */
		public var size:int = 12;
		/**
		 * Font family.
		 */
		public var family:String = 'Microsoft YaHei';
		/**
		 * Font bold.
		 */
		public var bold:Boolean = false;
		/**
		 * Font italic.
		 */
		public var italic:Boolean = false;
		/**
		 * Font underline.
		 */
		public var underline:Boolean = false;
		/**
		 * Font align.
		 */
		public var align:String = 'left';
		/**
		 * Font placement type:'left','right','bottom','top'.
		 */
		public var placement:String = 'right';
		/**
		 * Clone to a new style and return.
		 */
		public function clone():FONT
		{
			var dest:FONT = new FONT;
			this.cloneTo(dest);
			return dest;
		}
		/**
		 * Clone to dest style.
		 */
		public function cloneTo(dest:FONT):void
		{
			dest.align = align;
			dest.bold = bold;
			dest.color = color;
			dest.family = family;
			dest.italic = italic;
			dest.placement = placement;
			dest.underline = underline;
			dest.size = size;
		}
		/**
		 * Clone to dest style.
		 */
		public function compare(dest:FONT):Boolean
		{
			return dest.align == align && dest.bold == bold && dest.color == color && dest.family == family && dest.italic == italic && dest.placement == placement && dest.underline == underline && dest.size == size;
		}
	}
}